﻿@model RegioKistl.Models.UserStartPageData
@{
    ViewBag.Title = "UserWelcome";
}

<table>
    <tr>
        <th>
            Html.DisplayNameFor(model => model.LastestDeliveries.First().CustomerId)
        </th>
        <th>
            Html.DisplayNameFor(model => model.LastestDeliveries.First().DeliveryDate)
        </th>
        <th>
            Html.DisplayNameFor(model => model.LastestDeliveries.First().WasHelping)
        </th>
        <th>
            Html.DisplayNameFor(model => model.LastestDeliveries.First().TakenBoxesCount)
        </th>
        <th>
            Html.DisplayNameFor(model => model.LastestDeliveries.First().ReturnedBoxesCount)
        </th>
        <th>
            Html.DisplayNameFor(model => model.LastestDeliveries.First().PriceForTransaction)
        </th>
    </tr>

@foreach (var item in ViewBag.LastestDeliveries)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.CustomerId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DeliveryDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.WasHelping)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TakenBoxesCount)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ReturnedBoxesCount)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PriceForTransaction)
        </td>
    </tr>
}
</table>


<h2>UserWelcome</h2>
